#ifndef ACCOUNTMODEL_H
#define ACCOUNTMODEL_H

#include <QSqlRelationalTableModel>

class AccountModel : public QSqlRelationalTableModel
{
public:
	AccountModel(QObject* parent);

	void addAccount();
	void deleteAccounts(const QModelIndexList&);
	void setAccountBalance(int, double);
	void updateNDBalances(double, double);
	QPair<int,int> ndAccounts();
};

#endif // ACCOUNTMODEL_H
